//导入vue里面的createApp函数

import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus' //引入element-plus的js
import 'element-plus/dist/index.css' //引入element-plus的css
import 'bootstrap/dist/css/bootstrap.css' //引入bootstrap的css
import router from '@/tools/router.js'
import { axiosInstance } from '@/tools/axios-http.js' //引入写好的axios-http.js


const app = createApp(App);
app.config.globalProperties.$axios = axiosInstance //把axios绑定为全局变量，叫axiosInstance
app.use(ElementPlus) //注册第三方软件库到vue实例中
app.use(router)
app.mount('#app')